<?php

class Questions extends HTech_Db_Table
{
    protected $_name    = 'survey_questions';
    protected $_primary = 'QuestionId';  
    
    protected $_dependentTables = array('LnkSurveyQuestion','Answers');
    
    protected function _setGridMetadata()
    {
        $this->_gridMetadata['title'] = $this->translate("Questions");
        $this->_gridMetadata['onClick'] = 'survey.question.view';
        $this->_gridMetadata['headers'] = array
            (
                array('QuestionId', 40, $this->translate("Id"), 'Number'),
                array('Question', 450, $this->translate("Status"), 'String'),
                array('LastEditDate', 150, $this->translate("Last edit date"), 'DateTime', 'Date'),
            );
        return $this;
    }
}
